package top.canyue.eca_manager.service;

import top.canyue.eca_manager.bean.Result;

public interface ConferenceService {
    Result findById(String id);

    Result getAllConferenceName();

    Result findConferenceByName(String name, String orders, Integer offset, Integer fetchSize);

    Result getCountByName(String name);

    Result addConference(String name, String address, long startTime, long endTime, String comm);

    Result updateConferenceInfo(String id, String name, String address, long startTime, long endTime, String comm);

    Result deleteById(String id);

    Result getCountByFuture();

    Result getCountByToday();

    Result getFirstConferenceByUserId(String userId);

    boolean updatePersistent(String id, boolean persistent);

    boolean getPersistentById(String id);

    Result getUserConferenceByDay(String userId, int year, int month, int day);

    Result getUsersHaveConferenceDaysByMonth(String userId, int year, int month);
}
